3.61 \(\int \frac{1}{\sqrt{c \cos ^m(a+b x)}} \, dx\)

Optimal. Leaf size=80 \[ -\frac{2 \sin (a+b x) \cos (a+b x) \, _2F_1\left (\frac{1}{2},\frac{2-m}{4};\frac{6-m}{4};\cos ^2(a+b x)\right )}{b (2-m) \sqrt{\sin ^2(a+b x)} \sqrt{c \cos ^m(a+b x)}} \]

[Out]

(-2*Cos[a + b*x]*Hypergeometric2F1[1/2, (2 - m)/4, (6 - m)/4, Cos[a + b*x]^2]*Sin[a + b*x])/(b*(2 - m)*Sqrt[c*
Cos[a + b*x]^m]*Sqrt[Sin[a + b*x]^2])

________________________________________________________________________________________

Rubi [A]  time = 0.0466379, antiderivative size = 80, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3208, 2643} \[ -\frac{2 \sin (a+b x) \cos (a+b x) \, _2F_1\left (\frac{1}{2},\frac{2-m}{4};\frac{6-m}{4};\cos ^2(a+b x)\right )}{b (2-m) \sqrt{\sin ^2(a+b x)} \sqrt{c \cos ^m(a+b x)}} \]

Antiderivative was successfully verified.

[In]

Int[1/Sqrt[c*Cos[a + b*x]^m],x]

[Out]

(-2*Cos[a + b*x]*Hypergeometric2F1[1/2, (2 - m)/4, (6 - m)/4, Cos[a + b*x]^2]*Sin[a + b*x])/(b*(2 - m)*Sqrt[c*
Cos[a + b*x]^m]*Sqrt[Sin[a + b*x]^2])

Rule 3208

Int[(u_.)*((b_.)*((c_.)*sin[(e_.) + (f_.)*(x_)])^(n_))^(p_), x_Symbol] :> Dist[(b^IntPart[p]*(b*(c*Sin[e + f*x
])^n)^FracPart[p])/(c*Sin[e + f*x])^(n*FracPart[p]), Int[ActivateTrig[u]*(c*Sin[e + f*x])^(n*p), x], x] /; Fre
eQ[{b, c, e, f, n, p}, x] &&  !IntegerQ[p] &&  !IntegerQ[n] && (EqQ[u, 1] || MatchQ[u, ((d_.)*(trig_)[e + f*x]
)^(m_.) /; FreeQ[{d, m}, x] && MemberQ[{sin, cos, tan, cot, sec, csc}, trig]])

Rule 2643

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(Cos[c + d*x]*(b*Sin[c + d*x])^(n + 1)*Hypergeomet
ric2F1[1/2, (n + 1)/2, (n + 3)/2, Sin[c + d*x]^2])/(b*d*(n + 1)*Sqrt[Cos[c + d*x]^2]), x] /; FreeQ[{b, c, d, n
}, x] &&  !IntegerQ[2*n]

Rubi steps

\begin{align*} \int \frac{1}{\sqrt{c \cos ^m(a+b x)}} \, dx &=\frac{\cos ^{\frac{m}{2}}(a+b x) \int \cos ^{-\frac{m}{2}}(a+b x) \, dx}{\sqrt{c \cos ^m(a+b x)}}\\ &=-\frac{2 \cos (a+b x) \, _2F_1\left (\frac{1}{2},\frac{2-m}{4};\frac{6-m}{4};\cos ^2(a+b x)\right ) \sin (a+b x)}{b (2-m) \sqrt{c \cos ^m(a+b x)} \sqrt{\sin ^2(a+b x)}}\\ \end{align*}

Mathematica [A]  time = 0.0749802, size = 72, normalized size = 0.9 \[ \frac{2 \sqrt{\sin ^2(a+b x)} \cot (a+b x) \, _2F_1\left (\frac{1}{2},\frac{2-m}{4};\frac{6-m}{4};\cos ^2(a+b x)\right )}{b (m-2) \sqrt{c \cos ^m(a+b x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[1/Sqrt[c*Cos[a + b*x]^m],x]

[Out]

(2*Cot[a + b*x]*Hypergeometric2F1[1/2, (2 - m)/4, (6 - m)/4, Cos[a + b*x]^2]*Sqrt[Sin[a + b*x]^2])/(b*(-2 + m)
*Sqrt[c*Cos[a + b*x]^m])

________________________________________________________________________________________

Maple [F]  time = 0.2, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{\sqrt{c \left ( \cos \left ( bx+a \right ) \right ) ^{m}}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(c*cos(b*x+a)^m)^(1/2),x)

[Out]

int(1/(c*cos(b*x+a)^m)^(1/2),x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{c \cos \left (b x + a\right )^{m}}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(c*cos(b*x+a)^m)^(1/2),x, algorithm="maxima")

[Out]

integrate(1/sqrt(c*cos(b*x + a)^m), x)

________________________________________________________________________________________

Fricas [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: UnboundLocalError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(c*cos(b*x+a)^m)^(1/2),x, algorithm="fricas")

[Out]

Exception raised: UnboundLocalError

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{c \cos ^{m}{\left (a + b x \right )}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(c*cos(b*x+a)**m)**(1/2),x)

[Out]

Integral(1/sqrt(c*cos(a + b*x)**m), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{c \cos \left (b x + a\right )^{m}}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(c*cos(b*x+a)^m)^(1/2),x, algorithm="giac")

[Out]

integrate(1/sqrt(c*cos(b*x + a)^m), x)